<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
    <title>Introduction - Zend Framework Manual</title>

    <link href="../css/shCore.css" rel="stylesheet" type="text/css" />
    <link href="../css/shThemeDefault.css" rel="stylesheet" type="text/css" />
    <link href="../css/styles.css" media="all" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Zend Framework</h1>
<h2>Programmer's Reference Guide</h2>
<ul>
    <li><a href="../en/learning.autoloading.intro.html">Inglês (English)</a></li>
    <li><a href="../pt-br/learning.autoloading.intro.html">Português Brasileiro (Brazilian Portuguese)</a></li>
</ul>
<table width="100%">
    <tr valign="top">
        <td width="85%">
            <table width="100%">
                <tr>
                    <td width="25%" style="text-align: left;">
                    <a href="learning.autoloading.html">Autoloading in Zend Framework</a>
                    </td>

                    <td width="50%" style="text-align: center;">
                        <div class="up"><span class="up"><a href="learning.autoloading.html">Autoloading in Zend Framework</a></span><br />
                        <span class="home"><a href="manual.html">Programmer's Reference Guide</a></span></div>
                    </td>

                    <td width="25%" style="text-align: right;">
                        <div class="next" style="text-align: right; float: right;"><a href="learning.autoloading.design.html">Goals and Design</a></div>
                    </td>
                </tr>
            </table>
<hr />
<div id="learning.autoloading.intro" class="section"><div class="info"><h1 class="title">Introduction</h1></div>
    

    <p class="para">
        Autoloading is a mechanism that eliminates the need to manually require dependencies within
        your <acronym class="acronym">PHP</acronym> code. Per <a href="http://php.net/autoload" class="link external">&raquo; the PHP
        autoload manual</a>, once an autoloader has been defined, it &quot;is automatically called
        in case you are trying to use a class or an interface which hasn&#039;t been defined yet.&quot;
    </p>

    <p class="para">
        Using autoloading, you do not need to worry about <em class="emphasis">where</em> a class exists
        in your project. With well-defined autoloaders, you do not need to worry about where a class
        file is relative to the current class file; you simply use the class, and the autoloader
        will perform the file lookup.
    </p>

    <p class="para">
        Additionally, autoloading, because it defers loading to the last possible moment and ensures
        that a match only has to occur once, can be a huge performance boost -- particularly if you
        take the time to strip out  <span class="methodname">require_once()</span> calls before you move
        to deployment.
    </p>

    <p class="para">
        Zend Framework encourages the use of autoloading, and provides several tools to provide
        autoloading of both library code as well as application code. This tutorial covers these
        tools, as well as how to use them effectively.
    </p>
</div>
        <hr />

            <table width="100%">
                <tr>
                    <td width="25%" style="text-align: left;">
                    <a href="learning.autoloading.html">Autoloading in Zend Framework</a>
                    </td>

                    <td width="50%" style="text-align: center;">
                        <div class="up"><span class="up"><a href="learning.autoloading.html">Autoloading in Zend Framework</a></span><br />
                        <span class="home"><a href="manual.html">Programmer's Reference Guide</a></span></div>
                    </td>

                    <td width="25%" style="text-align: right;">
                        <div class="next" style="text-align: right; float: right;"><a href="learning.autoloading.design.html">Goals and Design</a></div>
                    </td>
                </tr>
            </table>
</td>
        <td style="font-size: smaller;" width="15%"> <style type="text/css">
#leftbar {
	float: left;
	width: 186px;
	padding: 5px;
	font-size: smaller;
}
ul.toc {
	margin: 0px 5px 5px 5px;
	padding: 0px;
}
ul.toc li {
	font-size: 85%;
	margin: 1px 0 1px 1px;
	padding: 1px 0 1px 11px;
	list-style-type: none;
	background-repeat: no-repeat;
	background-position: center left;
}
ul.toc li.header {
	font-size: 115%;
	padding: 5px 0px 5px 11px;
	border-bottom: 1px solid #cccccc;
	margin-bottom: 5px;
}
ul.toc li.active {
	font-weight: bold;
}
ul.toc li a {
	text-decoration: none;
}
ul.toc li a:hover {
	text-decoration: underline;
}
</style>
 <ul class="toc">
  <li class="header home"><a href="manual.html">Programmer's Reference Guide</a></li>
  <li class="header up"><a href="manual.html">Programmer's Reference Guide</a></li>
  <li class="header up"><a href="learning.html">Learning Zend Framework</a></li>
  <li class="header up"><a href="learning.autoloading.html">Autoloading in Zend Framework</a></li>
  <li class="active"><a href="learning.autoloading.intro.html">Introduction</a></li>
  <li><a href="learning.autoloading.design.html">Goals and Design</a></li>
  <li><a href="learning.autoloading.usage.html">Basic Autoloader Usage</a></li>
  <li><a href="learning.autoloading.resources.html">Resource Autoloading</a></li>
  <li><a href="learning.autoloading.conclusion.html">Conclusion</a></li>
 </ul>
 </td>
    </tr>
</table>

<script type="text/javascript" src="../js/shCore.js"></script>
<script type="text/javascript" src="../js/shAutoloader.js"></script>
<script type="text/javascript" src="../js/main.js"></script>

</body>
</html>